package com.panshi.service;

import com.panshi.entity.SysAnswerCheck;
import com.panshi.tools.DataResult;
import com.panshi.tools.PageBean;

/**
 * 回答未审核service
 */
public interface AnswerCheckService {

    /**
     * 添加未审核回答
     * @param sysAnswerCheck
     * @return
     */
    DataResult addAnswer(SysAnswerCheck sysAnswerCheck);

    /**
     * 执行审核
     * @param
     * @return
     */
    DataResult adoptCheck(SysAnswerCheck sysAnswerCheck);


    /**
     * 修改回答
     * @param sysAnswerCheck
     */
    DataResult updateAnswer(SysAnswerCheck sysAnswerCheck);

    /**
     * 删除回答
     * @param answerId
     * @return
     */
    DataResult deleteAnswer(Integer answerId);


    /**
     * 根据用户id查询
     * @param userId
     * @return
     */
    DataResult queryByUid(Integer userId, PageBean pageBean);

    /**
     * 查询所有回答
     * @return
     */
    DataResult query(Integer status,PageBean pageBean);

}
